ServerEvents.recipes(event => {
  const thermal=event.recipes.thermal
  event.remove('thermal:device_rock_gen')
  thermal.smelter('kubejs:rocket_ingot', [ // 输出物品
      '#forge:ingots/enderium',
      '#forge:ingots/vibrant_alloy',
      '#forge:ingots/pulsating_alloy'
  ])
  .energy(50000) // 能量消耗
  .id('kubejs:thermal/rocket_ingot'); // 配方 ID
  thermal.pulverizer([Item.of('immersiveengineering:dust_coke'),Item.of('enderio:powdered_coal').withChance(0.1)],
  '#forge:coal_coke')
  .energy(2000)
  event.remove({type:'kubejs:shaped',output:'thermal:rubber'})
  //红石通量元件
  event.remove('thermal:rf_coil')
  event.shaped(
      Item.of('thermal:rf_coil', 2), // arg 1: output
      [
        '  B',
        ' A ', // arg 2: the shape (array of strings)
        'B  '
      ],
      {
        A: '#forge:ingots/energetic_alloy',
        B: '#forge:ingots/redstone_alloy'  //arg 3: the mapping object
      })
  //红石伺服器
  event.remove('thermal:redstone_servo')
  event.shaped(
  Item.of('thermal:redstone_servo', 2), 
  [
      'BAB',
      ' C ',
      'BAB'
  ],
  {
      A: 'thermal:cured_rubber',
      B: '#forge:ingots/redstone_alloy',
      C: '#forge:ingots/hop_graphite'
  })
  //感应炉
  event.remove('thermal:machine_smelter')
  event.shaped(
  Item.of('thermal:machine_smelter', 1),
  [
      'CAC',
      'DFD',
      'EBE'
  ],
  {
      A: 'thermal:upgrade_augment_1',
      B: 'thermal:rf_coil',
      C: 'thermal:redstone_servo',
      D: 'anvilcraft:reinforced_concrete',
      E: 'tfc:fire_bricks',
      F: 'thermal:machine_frame'
  })
  event.remove('thermal:machine_pulverizer')
  event.shaped(
      Item.of('thermal:machine_pulverizer', 1), // arg 1: output
      [
        'DAD',
        'EFE', // arg 2: the shape (array of strings)
        'BCB'
      ],
      {
        A: 'goety:pulverize_focus',
        B: 'thermal:rf_coil',  //arg 3: the mapping object
        C: 'immersiveengineering:grindingdisk',
        D: 'create:crushing_wheel',
        E: 'enderio:dark_steel_grinding_ball',
        F: 'thermal:machine_frame'
      })
  event.remove('thermal:machine_pyrolyzer')
  event.shaped(
      Item.of('thermal:machine_pyrolyzer', 1), // arg 1: output
      [
          'AAAAA',
          'ACACA', // arg 2: the shape (array of strings)
          'ACFCA',
          'EDDDE',
          'HBGBH'
      ],
      {
          A: 'immersiveengineering:cokebrick',
          B: 'thermal:rf_coil',  //arg 3: the mapping object
          C: 'immersiveengineering:ingot_hop_graphite',
          D: 'immersiveengineering:coil_hv',
          E: 'immersiveengineering:light_engineering',
          F: 'thermal:machine_frame',
          G: 'anvilcraft:heater',
          H: 'immersiveengineering:heavy_engineering'
      })
  event.remove('ad_astra:fuel_refinery')
  event.shaped(
      Item.of('ad_astra:fuel_refinery', 1), // arg 1: output
      [
          'BCB',
          'BAB', // arg 2: the shape (array of strings)
          'EDE'
      ],
      {
          A: 'thermal:machine_refinery',
          B: 'thermal:signalum_glass',  //arg 3: the mapping object
          C: 'mobz:seal_key',
          D: 'create:precision_mechanism',
          E: 'create:mechanical_pump',
      })
      event.remove('thermal:dynamo_compression')
  event.shaped(
      Item.of('thermal:dynamo_compression', 2), 
      [
          ' D ',
          'ECE',
          'BAB'
      ],
      {
          A: '#forge:ingots/dark_steel',
          B: '#forge:ingots/energetic_alloy',  
          C: 'thermal:upgrade_augment_1',
          D: 'thermal:rf_coil',
          E: 'immersiveengineering:graphite_electrode'
      })
  event.remove('immersive_aircraft:propeller')
  event.custom(
          {
              "type": "thermal:press",
              "ingredients": [
                {
                  "tag": "forge:sheets/wrought_iron",
                  "count": 1
                },
                {
                  "item": "thermal:press_gear_die"
                }
              ],
              "result": [
                {
                  "item": "immersive_aircraft:propeller"
                }
              ]
            })
  //后期胶水制作
  event.custom(
  {
      "type": "thermal:bottler",
      "ingredients": [
        {
          "item": "minecraft:bone_meal"
        },
        {
          "fluid": "tfc:limewater",
          "amount": 250
        }
      ],
      "result": [
        {
          "item": "tfc:glue"
        }
      ],
      "experience": 0.1
  })
  event.remove('thermal:machine_chiller')
  event.shaped(
    Item.of('thermal:machine_chiller', 1), 
    [
        'ACA',
        'BEB',
        'FDF'
    ],
    {
        A: 'anvilcraft:reinforced_concrete_white',
        B: 'create:encased_fan',  
        C: 'goety:ice_storm_focus',
        D: 'thermal:rf_coil',
        E: 'thermal:machine_frame',
        F: 'immersiveengineering:radiator'
    })
    thermal.pyrolyzer([Fluid.of('immersivepetroleum:kerosene',200),Item.of('thermal:tar').withChance(0.25)],'#forge:coal')
    thermal.smelter('kubejs:rocket_ingot', [ 
      '8x kubejs:titanium_aluminum_alloy',
      '8x kubejs:incompleted_rocket_ingot'

    ])
    .energy(50000) 
    .id('kubejs:rocket_ingot');
})